package com.infotel.media;

import javax.swing.ImageIcon;

public class ChargeurRessource {
    private String base;

    public ChargeurRessource(String base) {
        this.base = base;
    }
    public ChargeurRessource() {
        this("");
    }
    
    public ImageIcon getIcon(String icon){
        @SuppressWarnings("rawtypes")
        Class classe = getClass();
        return new ImageIcon(classe.getResource(this.base+icon));
    }
    
}
